//
//  CurrencyDetailsViewController.swift
//  Exchange
//
//  Created by 孟祥群 on 2018/5/2.
//  Copyright © 2018年 common. All rights reserved.
//

import UIKit

class CurrencyDetailsViewController: BaseViewController {
    var viewModel: CurrencyDetailsViewModel?
    lazy var currencyView:CurrencyDetailsView = {
        let view = CurrencyDetailsView(dataSource: viewModel)
        return view
    }()
    
    init() {
        super.init(nibName: nil, bundle: nil)
        viewModel = CurrencyDetailsViewModel(controller: self)
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    override func viewDidLoad() {
        super.viewDidLoad()

        // Do any additional setup after loading the view.
        view.addSubview(currencyView)
        self.title = kText("订单明细")
        currencyView.snp.makeConstraints { (make) in
            make.top.left.right.equalToSuperview()
            make.bottom.equalToSuperview().offset(0)
        }
       
    }
    override func viewWillAppear(_ animated: Bool) {
        
        self.navigationController?.convention()
    }
    override func viewWillDisappear(_ animated: Bool) {
        super.viewWillDisappear(animated)
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    

    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        // Get the new view controller using segue.destinationViewController.
        // Pass the selected object to the new view controller.
    }
    */

}
